-
Notifications
You must be signed in to change notification settings - Fork 116
[IMP] account: added quick search on amount in journal items #4847
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 18.0-rd-accounting-onboarding-malb
Are you sure you want to change the base?
[IMP] account: added quick search on amount in journal items #4847
Conversation
|
This PR targets the un-managed branch odoo-dev/odoo:18.0-rd-accounting-onboarding-malb, it needs to be retargeted before it can be merged. |
malb-odoo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commit message title is good but there is no description of the change you did, for bigger pr it will be impossible to understand what is being done, so always add a description of the change 😄
you can follow that guideline:
https://www.odoo.com/documentation/17.0/contributing/development/git_guidelines.html#commit-message-structure
| <field name="tax_line_id" string="Originator Tax"/> | ||
| <field name="reconcile_model_id"/> | ||
| <field name="amount_currency" string="Amount" filter_domain="[ | ||
| ('amount_currency', '=', self)]"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ou used the amount_currency but i don't think that really what we want 👀 The amount currency will be the same as the balance or debit and credit when we have the same currency but it could happen that you do a transaction in dollars when your company is in euro and so the amount_currency will be different. Here we want to be able to search on the balance or debit and credit together 😄
also amount currency could be negative then your code will not work 👀
1450fc6 to
909ccda
Compare
malb-odoo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same remarks the commits, let's squash them and write a proper commit message 😄
| <field name="balance" string="Amount" filter_domain="[ | ||
| ('balance', '=', self)]"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one line this 😄 Also other solution would be to use debit and credit with an or
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should I do both ?
The search should be possible with the amount of the journal thus the search on the balance field is now feasible task: 5231333 a
39228a2 to
e0e2dd6
Compare
[IMP] account: added the seach filter for the journal amount
Previously users can not search the journal items based on the amount thus motivated this changed to enable the user to search for the journal items by amount of balance.
task: Quick search on an amount in the journal items